﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="jQueryAutoComplete.aspx.vb" Inherits="ProjetoDeTestes.jQueryAutoComplete" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="js/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
    <script src="js/jquery.ui.autocomplete.js" type="text/javascript"></script>
    <script src="js/jquery.ui.core.js" type="text/javascript"></script>
    <script src="js/jquery.ui.position.js" type="text/javascript"></script>
    <link href="css/demos.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
	    $(function () {
	        var availableTags = ["ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", "Perl", "PHP", "Python", "Ruby", "Scala", "Scheme"];
	        $("#tags").autocomplete({
	            source: availableTags
	        });
	    });
	</script> 
</head> 
<body>
    <form id="form1" runat="server">
<div class="demo"> 
 
<div class="ui-widget"> 
	<label for="tags">Tags:</label> 
	<input id="tags" /> 
</div> 
 
</div><!-- End demo --> 
 
<div class="demo-description"> 
<p> 
The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are tags for programming languages, give "ja" (for Java or JavaScript) a try.
</p> 
<p> 
The datasource is a simple JavaScript array, provided to the widget using the source-option.
</p> 
</div>
    </form>
</body>
</html>
